#makefile

OPENCVFLAGS := `pkg-config --cflags opencv`
OPENCVLIBS := `pkg-config --libs opencv`

CC := g++

objects =	face_detect.o \
			main.o

singleton: singleton.cpp
	$(CC) $(OPENCVFLAGS) -Wall -g $< -o $@ $(OPENCVLIBS)

main: $(objects)
	$(CC)  $(objects) -o $@ $(OPENCVLIBS)

$(objects): %.o: %.cpp
	$(CC)  $(OPENCVFLAGS) -g -c $< -o $@

clean:
	rm -rf *.o main singleton
